﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ds.DataBase.Model
{
    /// <summary>
    /// 职务
    /// </summary>
    public class ZhiWei
    {
        [Key, DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int zwid { set; get; }
        /// <summary>
        /// 职位名称
        /// </summary>
        public string zwmc { set; get; }
        /// <summary>
        /// 路径
        /// </summary>
        public string zwpath { set; get; }
        ///// <summary>
        ///// 教职工集
        ///// </summary>
        //public virtual ICollection<JiaoZhiGongInfo> JiaoZhiGongInfos { set; get; }
        ///// <summary>
        ///// 所属科室
        ///// </summary>
        //public virtual ICollection<KeShi> keshis { set; get; }
        /// <summary>
        /// 上级职务
        /// </summary>
        public virtual ZhiWei PZhiWei { set; get; }
        ///// <summary>
        ///// 权限集
        ///// </summary>
        //public virtual ICollection<PowerTree> PowerTrees { set; get; }
        ///// <summary>
        ///// 改下代码，启用新考核表
        ///// </summary>
        //public virtual ICollection<MoBan_Main> MoBan_Main { set; get; }
        public virtual ICollection<KeShiZhiWu> keshizhiwus { set; get; }
    }
}
